package cn.dengl.sky.springboot.common.config.security;

import cn.dengl.sky.springboot.sys.entity.User;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

/**
 * @program: springboot
 * @description:
 * @author: liu yan
 * @create: 2018-09-17 14:31
 */
public class SecurityUser extends User implements UserDetails {
    public SecurityUser(User user){
        this.setAddress(user.getAddress());
        this.setPassword(user.getPassword());
        this.setUserName(user.getUserName());
        this.setJob(user.getJob());
    }
}
